home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
049a
/
sx227r1.zip
/
COMPRESS.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-07-30
|
2KB
|
76 lines
echo off
:
:-----------------------------------------------------------
: COMPRESS batch file - Xpress Packet Compression Process
: (c) copyright 1988-90 Santronics Software
:-----------------------------------------------------------
:
: NOTE: Xpress during the COMPRESSION process in the startup
: directory.
:
:-----------------------------------------------------------
: Input Parameters
:-----------------------------------------------------------
:
: 1 Hotkey from Xpress Archiver Menu
: 2 /M
: 3 full path location and xpress OPX packet name.
: 4 xpress work directory wild card passed by opxpress.
:
:-----------------------------------------------------------
: Modify and Add extra archivers if required.
:
: 1) first add a IF statement with a GOTO
: 2) then add the goto LABEL with the appropiate logic.
:-----------------------------------------------------------
:
IF "%1" == "A" GOTO ARCA
IF "%1" == "X" GOTO PKARC
IF "%1" == "P" GOTO PAK
IF "%1" == "Z" GOTO PKZIP
IF "%1" == "L" GOTO LHARC
GOTO ERROR
:------------------------------------ ARCA compression
:ARCA
:
ARCA %3 %4 /d
EXIT ERRORLEVEL
GOTO END
:------------------------------------ PK ARC compression, 3.5 or 3.6
:PKARC - Note PKARC/PKXARC does not return ERROR codes.
: Xpress will try to see if any !*.* exist to determine
: if an error occurred.
:
PKARC %2 %3 %4
EXIT ERRORLEVEL
GOTO END
:------------------------------------ PAK compression, 1.0
:PAK
:
PAK M %3 %4
EXIT ERRORLEVEL
GOTO END
:------------------------------------ PKZIP compression
:PKZIP
:
PKZIP -MEA4 %3 %4
EXIT ERRORLEVEL
GOTO END
:------------------------------------ LHARC compression
:LHARC
:
LHARC m /m %3 %4
EXIT ERRORLEVEL
GOTO END
:------------------------------------ ERROR PROCESSING
:ERROR
echo Compress Archiver %1 not found!
:END